-- GENERATED SPELL FOR [Jadefire Felsworn] --


function spell0_7109(pUnit, Event) --@Cripple,n/a--
pUnit:FullCastSpellOnTarget(11443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7109', 18000, 1)
end

function spell1_7109(pUnit, Event) --@Jadefire,Self--
pUnit:FullCastSpellOnTarget(13578,pUnit)
pUnit:RegisterEvent('Sorts_7109', 8293, 1)
end

function spell2_7109(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7109', 3000, 1)
end

function Sorts_7109(pUnit, Event)
local choix_sorts_7109 = math.random(0, 2)
if choix_sorts_7109 == 0 then
pUnit:RegisterEvent('spell0_7109', 1, 1)
end
if choix_sorts_7109 == 1 then
pUnit:RegisterEvent('spell1_7109', 1, 1)
end
if choix_sorts_7109 == 2 then
pUnit:RegisterEvent('spell2_7109', 1, 1)
end
end

function mob7109_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7109', math.random(1500, 3000), 1)
end

function mob7109_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7109_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7109_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7109, 1, 'mob7109_Action')
RegisterUnitEvent(7109, 2, 'mob7109_Leave')
RegisterUnitEvent(7109, 3, 'mob7109_Kill')
RegisterUnitEvent(7109, 4, 'mob7109_Die')
